package com.smartleanx.module.hrm.eums.employee;

import com.smartleanx.framework.common.core.IntArrayValuable;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

import java.util.Arrays;

/**
 * 最高学历枚举
 *
 * @author tengcj
 * @since 2024/5/21
 */
@Getter
@RequiredArgsConstructor
public enum HighestEducationEnum implements IntArrayValuable {

    PRIMARY_SCHOOL(1, "小学"),
    JUNIOR_HIGH_SCHOOL(2, "初中"),
    SENIOR_HIGH_SCHOOL(3, "高中"),
    POLYTECHNIC_SCHOOL(4, "中专"),
    SENIOR_VOCATIONAL(5, "中职"),
    SENIOR_TECHNICAL(6, "中技"),
    ASSOCIATE_DEGREE(7, "大专"),
    UNDERGRADUATE(8, "本科"),
    MASTER(9, "硕士"),
    DOCTOR(10, "博士"),

    ;

    public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(HighestEducationEnum::getCode).toArray();

    private final Integer code;

    private final String desc;

    @Override
    public int[] array() {
        return ARRAYS;
    }
}
